package com.amsp.oa.oademo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
@TableName("t_file_reissue")
@ApiModel(value = "FileReissue", description = "文件补发申请单")
public class FileReissue {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("申请单位")
    private String applicationUnit;

    @ApiModelProperty("申请日期")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate applicationDate;

    @ApiModelProperty("核准人")
    private String approvedBy;

    @ApiModelProperty("审核人")
    private String reviewedBy;

    @ApiModelProperty("经办人")
    private String handledBy;

    @ApiModelProperty("文控中心处理意见")
    private String documentControlOpinion;

    @ApiModelProperty("签收人")
    private String signFor;

    @ApiModelProperty("发放人")
    private String distribution;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    @ApiModelProperty("文件明细列表")
    private List<FileReissueDetail> details;
}